package com.chenailin.www.dao;

import com.chenailin.www.pojo.Department;

import java.sql.SQLException;
import java.util.List;

public interface DepartmentDAO {
    int addDepartment(Department department) throws SQLException;

    boolean modifyDepartment(Department department) throws SQLException;

    boolean deleteDepartment(int departId) throws SQLException;

    Department findById(int departId);

    List<Department> getAllDepartments();

    boolean existByName(String departName);
}
